Label Widget
A lightweight re-implementation of the classic ThingWorx Label widget.
Usage
Properties
Property | Type | Binding | Default | Description |
---|---|---|---|---|
CustomClass | STRING | <> | Enables you to define an html class to the top div of the widget. Multiple classes can be entered, separated by space | |
Template | LIST | < | Template 1 | This will be the template used for the widget styling |
Text | ANY(localized) | < | Label | Text to be used |
Format | STRING(localized) | < | see Formatting | |
GlobalProperties | JSON | < | A serialized JSON object that has global parameter names as its keys and data types as values. These are properties can be referenced when using expression formatting | |
Tooltip | STRING(localized) | < | Optional tooltip used to display additional information. see Tooltip | |
TooltipAnchor | STRING | Widget | If the tooltip should appear next to the Widget, or next to the cursor. | |
TooltipFormat | STRING(localized) | < | see Formatting | |
TooltipType | LIST | < | Text | The widget tooltip type |
TooltipMashup | MASHUPNAME | < | Mashup to be used as a tooltip when TooltipType is set as Mashup | |
TooltipWidth | NUMBER | Width of the tooltip. It won't be bigger than the Max-width set in the GlobalStyles for the Tooltip | ||
TooltipHeight | NUMBER | Height of the tooltip. Can only be set if TooltipType is set as HTML , Markdown or Mashup | ||
RenderType | LIST | Plain Text | How the text in the label should be rendered Mashup | |
Ellipsis | BOOLEAN | FALSE | If ellipsis is TRUE the text doesn't fit within the label, it will truncate with ... at the end of the line and the text will be forced on one line and it will ellipsis at the end of the available space | |
IconURI | STRING | < | FALSE | URI describing the icon that's going to be used. Either a HTTP link or a reference to an icon in an icon font can be used. |
Expression Format context
When using Expression Format, other relevant fields can also be referenced.
value
: STRING | NUMBER | DATETIME - The label value
globalCtx
: TWJSON - Any TWX value declared on the widget Global Properties
and that has a value bound.
ctx
: { data
: INFOTABLE (entire dataset); row
: INFOTABLE row
} - If the value is bound from an INFOTABLE, the label can access the entire dataset and the current row.